/*
 * Copyright 2020-2021 the original author or authors.
 *
 * Licensed under the General Public License, Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.gnu.org/licenses/gpl-3.0.en.html
 */

package team.seekers.oj.judger.config;

import org.springframework.context.annotation.Configuration;

import java.nio.file.Paths;

@Configuration
public class PathConfig {
    public static final String SANDBOX_PATH = "/home/hbc/code/sandbox";
    public static final String WORKSPACE_DIR = "/home/hbc/code/workspace";
    public static final String LOG_DIR = "/home/hbc/code/log";
    public static final String DATA_DIR = "/home/hbc/code/data";
    public static final String ZIP_DIR = "/home/hbc/code/zip";
    public static final String SANDBOX_LOG_PATH = Paths.get("/home/hbc/code/log", new String[] { "sandbox.log" }).toString();
    public static final String JUDGER_LOG_PATH = Paths.get("/home/hbc/code/log", new String[] { "judger.log" }).toString();
    public static final int NOBODY_UID = 65534;
    public static final int NOBODY_GID = 65534;
}
